package com.leo.quartz.controller.aticle;

import com.leo.base.AbstractController;
import com.leo.quartz.common.lang.PageView;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 文章
 *
 * @author liusl
 * @version 1.0
 * @date 2018/12/8 13:36
 */
@Controller
@RequestMapping("/article")
public class ArticleController extends AbstractController {

    @RequestMapping("/list.html")
    public ModelAndView articleList(){
        return buildModelAndView(PageView.Article.LIST);
    }

    @RequestMapping("/add.html")
    public ModelAndView add(){
        return buildModelAndView(PageView.Article.ADD);
    }
}
